//
//  YXJListCell.m
//  Piece
//
//  Created by dllo on 16/6/7.
//  Copyright © 2016年 Northeast Dianli University. All rights reserved.
//

#import "YXJListCell.h"

@implementation YXJListCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.listContentLabel = [[UILabel alloc] init];
        self.listContentLabel.text = @"评论列表";
        self.listContentLabel.textColor = [UIColor colorWithRed:0.67 green:0.68 blue:0.68 alpha:1.00];
        self.listContentLabel.font = [UIFont systemFontOfSize:15];
        [self.contentView addSubview:_listContentLabel];
        
        self.listContentImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"review_normal"]];
        [self.contentView addSubview:_listContentImageView];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.listContentLabel.frame = CGRectMake(10, 10, 100, 15);
    self.listContentImageView.frame = CGRectMake(self.contentView.frame.size.width - 52, 8, 20, 20);
}

@end
